import { IFeidaoAiMobile } from '@dfeidao/atom-mobile/interfaces';
import get from '@dfeidao/atom-mobile/local/get';
import set from '@dfeidao/atom-mobile/local/set';
import nodejs from '@dfeidao/atom-mobile/msg/nodejs';
import render from '@dfeidao/atom-mobile/render/render';
export default async function a003(fd: IFeidaoAiMobile) {
	const productid = get(fd, 'productid');
	// const teacher_no = get(fd, 'teacher_no');
	// const res = await nodejs<{ dest: Array<{}> }>('app-my-schedule/s001', { productid, teacher_no });
	const res1 = await nodejs<{ data: Array<{}> }>('app-my-schedule/s003', { productid });
	set(fd, 'grade', res1.data);
	set(fd, 'grade_name', '');
	set(fd, 'grade_no', '');
	render(fd, { data: [], chek: '2', grade_name: '', class_name: '' });
}
